package online.yangcloud.common.model.business.list;

import java.util.List;

/**
 * @author zhuboyang
 * @since 2023年12月03 12:55:07
 */
public class ListSplitBusiness<T> {

    /**
     * 源集合
     */
    private List<T> sources;

    /**
     * 截取的集合
     */
    private List<T> splits;

    public static <T> ListSplitBusiness<T> builder() {
        return new ListSplitBusiness<>();
    }

    public List<T> getSources() {
        return sources;
    }

    public ListSplitBusiness<T> setSources(List<T> sources) {
        this.sources = sources;
        return this;
    }

    public List<T> getSplits() {
        return splits;
    }

    public ListSplitBusiness<T> setSplits(List<T> splits) {
        this.splits = splits;
        return this;
    }

    @Override
    public String toString() {
        return "ListSplitBusiness["
                + " sources=" + sources + ","
                + " splits=" + splits
                + " ]";
    }
}
